HTTP Status 404

您所在的位置:网站首页 http status error什么意思 HTTP Status 404

HTTP Status 404

2022-11-06 08:38| 来源: 网络整理| 查看: 265

这个问题在我之前转载的文章里出现过,之所以会出现这个问题是因为struts2在进行表单拦截的时候会对数据校验,struts2默认会进行表单数据校验。在struts2发生错误的时候struts2会去找input的返回选项:

/page/basic_data/inst_manage/homes_bottom.jsp在struts.xml文件加上input的result之后,并不会取消如上问题,但是依旧会进入input的重定向结果。

那么如何取消校验呢,在要进入的Action中重写validata方法:

@Override public void validate() { super.validate(); clearFieldErrors(); }这样只是说取消了对数据的校验,但是我们提交的数据依旧还是有问题的。

我这次又遇到了,我这次提交的数据比较简单,只有两个参数。所以想看看是不是数据格式有问题才导致的这个问题:

function homesUp(id) {var basePath = getBasePath();var url = basePath + "Up.action";var pageNo = document.getElementById("pageNo");post(url, {'pageNo':pageNo, 'homeId':id});}出现了上述问题,我如果改成直接进入url,是没有任何问题的:

function homesUp(id) {var basePath = getBasePath();var url = basePath + "Up.action";var pageNo = document.getElementById("pageNo");post(url);}结果是可以正常访问url,这更加验证了我的猜想。

于是我将pageNo打印出现,返回的结果是Object...。

function homesUp(id) {var basePath = getBasePath();var url = basePath + "Up.action";var pageNo = document.getElementById("pageNo").value;post(url, {'pageNo':pageNo, 'homeId':id});}于是问题就这样解决了... 1 0 HTTP Status 404 - No result defined for action org.csun.ns.action.NtHomesAction and result input HTTP Status 404-no result defined for action com.huida.action.LinkManAction and result input HTTP Status 404 - No result defined for action and result input HTTP Status 404 - No result defined for action …… and result input。 struts2 上传文件 HTTP Status 404 - No result defined for action.....and result input HTTP Status 404 - No result defined for action XXX and result input HTTP Status 500 - No result defined for action com.action.goodsAction and result input HTTP Status 404 - No result defined for action EmployeeAction and result input - action类似异常解决及原因剖析 “HTTP Status 404 - No result defined for action ****** and result result”错误解决方法 “HTTP Status 404 - No result defined for action ****** and result result”错误解决方法 HTTP Status 404 - No result defined for action com.lnzkx.action.PeronAction and result success HTTP Status 404 - No result defined for action com.ssk.action.Register and result success HTTP Status 404 - No result defined for action com.cnlive.csp.manage.action.SysGiftAction and result HTTP Status 404 - No result defined for action com.tencent.action.UserAction and result success No result defined for action *Action and result input - action - 404:No result defined for action and result input 404-No result defined for action and result input 错误 HTTP Status 404 - No result defined for action EmployeeAction and result input - struts2类似异常解决及原因剖析 Java private类构造函数笔记 Shiro 那点事儿 15.Pow(x, n) python默认编码问题 【bzoj3262】陌上花开 HTTP Status 404 - No result defined for action org.csun.ns.action.NtHomesAction and result input 【笔记】 《js权威指南》- 第18章 脚本化HTTP - 18.1 使用XHR(2) 常用导数+积分公式 Tkinter编程 使用DataFrame和numpy生成交叉表(笛卡尔积) CentOS如何配置国内YUM源 确定TOP OF PAGE 的位置 Matalb调用C/C++程序 在 Linux 下整合 Apache 与 Tomcat


【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3